<div class="layui-row layui-admin-mt10">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a><cite>用户管理</cite></a>
            </span>
</div>
<hr>
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-tab layui-tab-card">
            <div class="layui-tab-content start">
                <fieldset class="layui-elem-field layui-field-title">
                    <legend>用户管理</legend>
                </fieldset>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote  " style="padding: 0.5px  5px ">
                        <div class="layui-form">
                            <form class="layui-form layui-col-md12 we-search">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-mid">用户名称：</label>
                                        <div class="layui-input-inline" style="width: 150px;">
                                            <input type="text" name="username" autocomplete="off"
                                                   class="layui-input" placeholder="请输入用户名称" />
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-mid">用户邮箱：</label>
                                            <div class="layui-input-inline" style="width: 150px;">
                                            <input type="tel" name="email" autocomplete="off"  placeholder="请输入用户邮箱"
                                                   class="layui-input" />
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-mid">手机号：</label>
                                        <div class="layui-input-inline" style="">
                                            <input type="text" name="phone" autocomplete="off" placeholder="请输入手机号"
                                                   class="layui-input"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-input-inline">
                                            <button class="layui-btn" type="button" lay-submit="" lay-filter="sreach">
                                                <i class="layui-icon">&#xe615;</i>查询
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </blockquote>
                </div>
                <div class="layui-btn-container">
                    <button class="layui-btn layui-btn-sm" id="userAdd">
                        <i class="layui-icon">&#xe654;</i>新增
                    </button>
                    <button class="layui-btn  layui-btn-sm layui-btn-danger" id="dels" >
                        <i class="layui-icon ">&#xe640;</i>批量删除
                    </button>
                     <button class="layui-btn  layui-btn-sm layui-btn-danger" lay-filter="export" id="export">
                         <i class="layui-icon">&#xe601;</i>导出全部
                     </button>
                     <button class="layui-btn layui-btn-sm" id="refresh">
                       <i class="layui-icon">&#x1002;</i>刷新
                     </button>
                     <span id="totalProjectNumber" class="right"></span>
                </div>
                <table class="layui-hide" id="user-table" lay-filter="user-table"></table>
                <script type="text/html" id="toolBar">
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                </script>
                <!--新增、编辑页面-->
                <script type="text/template" id="UpduserTemplateList">
                    <div class="layui-card-body" style="padding: 15px;">
                        <form class="layui-form" lay-filter="component-form-group" id="UpdUser" onsubmit="return false">
                            <div class="layui-form-item">
                                <label class="layui-form-label">角色：</label>
                                <div class="layui-input-block">
                                    <select name="rid"  lay-verify="required">
                                        <option value="1" {{#if (d.role.rid =='1') { }}selected {{# } }} {{# if(d.id){ }}disabled{{# } }}>普通用户</option>
                                        <option value="2" {{#if (d.role.rid =='2') { }}selected {{# } }} {{# if(d.id){ }}disabled{{# } }}>管理员</option>
                                        <option value="3" {{#if (d.role.rid =='3') { }}selected {{# } }} {{# if(d.id){ }}disabled{{# } }}>超级管理员</option>
                                    </select>
                                    <!--<input type="radio" name="rid" value="1" title="普通用户" {{#if (d.role.rid =='1') { }}checked {{# } }} {{# if(d.id){ }}disabled{{# } }}/>-->
                                    <!--<input type="radio" name="rid" value="2" title="管理员"  {{#if (d.role.rid =='2') { }}checked {{# } }} {{# if(d.id){ }}disabled{{# } }}/>-->
                                    <!--<input type="radio" name="rid" value="3" title="超级管理员" {{#if (d.role.rid =='3') { }}checked {{# } }} {{# if(d.id){ }}disabled{{# } }}/>-->
                                </div>
                            </div>
                            <div class="layui-row layui-col-space10 layui-form-item">
                                <input type="hidden" name="id" value="{{ d.id }}">
                                <label class="layui-form-label">用户名：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="username" placeholder="请输入用户名" autocomplete="off"
                                           lay-verify="required" class="layui-input"
                                           value="{{ d.username?d.username:'' }}">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                    <label class="layui-form-label">电话：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="phone" placeholder="请输入电话号" autocomplete="off"
                                               lay-verify="required" class="layui-input"
                                               value="{{ d.phone?d.phone:'' }}" maxlength="11" >
                                    </div>
                            </div>
                            <div class="layui-form-item">
                                    <label class="layui-form-label">邮箱：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="email" placeholder="请输入电子邮箱" autocomplete="off"
                                               lay-verify="email" class="layui-input"
                                               value="{{ d.email?d.email:'' }}" >
                                    </div>
                            </div>
                            <div class="layui-form-item">
                                    <label class="layui-form-label">性别：</label>
                                    <div class="layui-input-block" id="sex" name="{{ d.gender?d.gender:'' }}">
                                        <input type="radio" name="gender" value="male"  title="男" 	{{#if (d.gender =='male') { }}checked{{# } }} />
                                        <input type="radio" name="gender" value="woman"  title="女" {{#if (d.gender =='woman') { }}checked{{# } }}/>
                                    </div>
                            </div>
                            <div class="layui-form-item" style="position: relative;left: 50px">
                                <div class="layui-input-block" >
                                    <button class="layui-btn" lay-submit="" lay-filter="upd_sumbit">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </script>
                <script type="text/template" id="AdduserTemplateList">
                    <div class="layui-card-body" style="padding: 15px;">
                        <form class="layui-form" lay-filter="component-form-group" id="AddUser" onsubmit="return false">
                            <div class="layui-form-item">
                                <label class="layui-form-label">角色：</label>
                                <div class="layui-input-block">
                                    <select name="rid"  lay-verify="required">
                                        <option value="1">普通用户</option>
                                        <option value="2" >管理员</option>
                                        <option value="3">超级管理员</option>
                                    </select>
                                    <!--<input type="radio" name="rid" value="1" title="普通用户"/>
                                    <input type="radio" name="rid" value="2" title="管理员" />
                                    <input type="radio" name="rid" value="3" title="超级管理员"/>-->
                                </div>
                            </div>
                            <div class="layui-row layui-col-space10 layui-form-item">
                                <label class="layui-form-label">用户名：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="username" placeholder="请输入用户名" autocomplete="off"
                                           lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-row layui-col-space10 layui-form-item">
                                <label class="layui-form-label">密码：</label>
                                <div class="layui-input-block">
                                    <input type="password" name="password" placeholder="请输入密码" autocomplete="off"
                                           lay-verify="password" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-row layui-col-space10 layui-form-item">
                                <label class="layui-form-label">确认密码：</label>
                                <div class="layui-input-block">
                                    <input type="password" name="confirmPwd" placeholder="请再次输入密码" autocomplete="off"
                                           lay-verify="confirmPwd" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">电话：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="phone" placeholder="请输入电话号" autocomplete="off"
                                           lay-verify="phone" class="layui-input" maxlength="11">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="email" placeholder="请输入电子邮箱" autocomplete="off"
                                           lay-verify="email" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">性别：</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="gender" value="male"  title="男" />
                                    <input type="radio" name="gender" value="woman"  title="女"/>
                                </div>
                            </div>
                            <div class="layui-form-item" style="position: relative;left: 50px">
                                <div class="layui-input-block" >
                                    <button class="layui-btn" lay-submit="" lay-filter="add_sumbit">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </script>
            </div>
        </div>
    </div>
</div>
